<?php
/**
 * Created by PhpStorm.
 * User: Bazoo
 * Date: 16/1/9
 * Time: 下午5:34
 */
//*************************** EVENT 通讯码 *************************

// ----- 系统通讯  -----
// 测试通讯
define("EVENT_TEST","event_test");

// 日志文件地址
define('PATH_SYSTEM_LOG_ROOT','/var/log/restaurant_order_server/');

define('RESULT','Result');
// 错误信息
define('ERROR_MSG','ErrorMsg');

// 成功
define('RESULT_CODE_OK',200);
// 参数异常
define('RESULT_CODE_PARAM_ERROR',400);
// 会话已过期
define('RESULT_CODE_SESSION_EXPIRED',401);
// 非法操作
define('RESULT_CODE_ILLEGAL_OPERATION',403);
// 找不到该通讯
define('RESULT_CODE_NOT_FOUND',404);
// 预料外的错误
define('RESULT_CODE_INTERNAL_SERVER_ERROR',500);


define('SYS_EVENT','ActionType');
define('DATA_DICTIONARY','DataDictionary');

define('EVENT','event');
define('REQUEST_ID','RequestId');

define('MESSAGE','message');
define('OPERATION','operation');
define('TYPE','type');
define('DATA','data');


// -----  数据库表: Tree_admin_user  -----

define('Tree_admin_user','Tree_admin_user');
define('ID','ID');
define('NAME','NAME');
define('PASSWORD','PASSWORD');
define('RANK','RANK');
define('PAGE','PAGE');
define('STATE','STATE');
define('CREATED_ON','CREATED_ON');
define('CREATED_BY','CREATED_BY');
define('UPDATED_ON','UPDATED_ON');
define('UPDATED_BY','UPDATED_BY');


// -----  数据库表: Tree_gg  -----

define('Tree_gg','Tree_gg');
define('GG_ID','GG_ID');
define('GG_NAME','GG_NAME');
define('GG_DW','GG_DW');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');



// -----  数据库表: Tree_group  -----

define('Tree_group','Tree_group');
define('GROUP_ID','GROUP_ID');
define('GROUP_NAME','GROUP_NAME');
define('GG_ARRAY','GG_ARRAY');
define('SPECIES_ID','SPECIES_ID');
define('DISPLAY_ORDER','DISPLAY_ORDER');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');



// -----  数据库表: Tree_mng_group_mst  -----

define('Tree_mng_group_mst','Tree_mng_group_mst');
//define('GROUP_ID','GROUP_ID');
//define('GROUP_NAME','GROUP_NAME');
define('IMG','IMG');
//define('DISPLAY_ORDER','DISPLAY_ORDER');
//define('STATE','STATE');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');

// -----  数据库表: Tree_mng_page_mst  -----

define('Tree_mng_page_mst','Tree_mng_page_mst');
define('PAGE_ID','PAGE_ID');
define('PAGE_NAME','PAGE_NAME');
//define('GROUP_ID','GROUP_ID');
//define('DISPLAY_ORDER','DISPLAY_ORDER');
define('URL','URL');
//define('STATE','STATE');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');



// -----  数据库表: Tree_productor  -----

define('Tree_productor','Tree_productor');
define('PRODUCTOR_ID','PRODUCTOR_ID');
//define('SPECIES_ID','SPECIES_ID');
//define('GROUP_ID','GROUP_ID');
//define('GG_ID','GG_ID');
define('GG_CS','GG_CS');
define('PRICE','PRICE');
define('PROVINCE','PROVINCE');
define('CITY','CITY');
define('COUNTY','COUNTY');
//define('DISPLAY_ORDER','DISPLAY_ORDER');
define('VISIT_COUNT','VISIT_COUNT');
define('DATE','DATE');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');

// -----  数据库表: Tree_productor_hist  -----

define('Tree_productor_hist','Tree_productor_hist');
//define('PRODUCTOR_ID','PRODUCTOR_ID');
//define('SPECIES_ID','SPECIES_ID');
//define('GROUP_ID','GROUP_ID');
//define('GG_ID','GG_ID');
//define('GG_CS','GG_CS');
//define('PRICE','PRICE');
//define('PROVINCE','PROVINCE');
//define('CITY','CITY');
//define('COUNTY','COUNTY');
//define('DISPLAY_ORDER','DISPLAY_ORDER');
//define('VISIT_COUNT','VISIT_COUNT');
//define('DATE','DATE');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');

// -----  数据库表: Tree_species  -----

define('Tree_species','Tree_species');
//define('SPECIES_ID','SPECIES_ID');
define('SPECIES_NAME','SPECIES_NAME');
//define('GG_ID','GG_ID');
define('DW','DW');
//define('STATE','STATE');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');

// -----  数据库表: Tree_customer_action_log  -----

define('Tree_customer_action_log','Tree_customer_action_log');
define('LOG_ID','LOG_ID');
define('CUSTOMER_ID','CUSTOMER_ID');
//define('PRODUCTOR_ID','PRODUCTOR_ID');
//define('DATE','DATE');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');



// -----  数据库表: Tree_customer_info  -----

define('Tree_customer_info','Tree_customer_info');
//define('CUSTOMER_ID','CUSTOMER_ID');
define('CUSTOMER_WX_ID','CUSTOMER_WX_ID');
define('PHONE_NUMBER','PHONE_NUMBER');
define('CUSTOMER_NAME','CUSTOMER_NAME');
//define('PASSWORD','PASSWORD');
define('LOGIN_TIME','LOGIN_TIME');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');



// -----  数据库表: Tree_question  -----

define('Tree_question','Tree_question');
define('QUESTION_ID','QUESTION_ID');
//define('CUSTOMER_ID','CUSTOMER_ID');
define('QUESTION_CONTENT','QUESTION_CONTENT');
define('CONTACT_NUMBER','CONTACT_NUMBER');
define('QUESTION_RESPONSE','QUESTION_RESPONSE');
//define('STATE','STATE');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');


// -----  数据库表: Tree_verify_code  -----

define('Tree_verify_code','Tree_verify_code');
define('CODE_ID','CODE_ID');
//define('PHONE_NUMBER','PHONE_NUMBER');
define('VERIFY_CODE','VERIFY_CODE');
define('VERIFY_CODE_TIME','VERIFY_CODE_TIME');





//------ 后台管理页面 ------
//-- 组 --
define('GROUP_ADMIN_MNG',1);
define('GROUP_TREE_MNG',2);
define('GROUP_QUESTION_MNG',3);
define('GROUP_STATISTICS_MNG',4);
define('GROUP_CUSTOMER_MNG',5);


//-- 页面 --
define('PAGE_ADMIN_ADD',101);
define('PAGE_ADMIN_LIST',102);

define('PAG_GG_ADD',201);
define('PAG_SPECIES_ADD',202);
define('PAG_SPECIES_LIST',203);

define('PAG_QUESTION_UNRESOLVED_LIST',301);
define('PAG_QUESTION_RESOLVED_LIST',302);

define('PAG_STATISTICS_VISIT_COUNT',401);

define('PAG_CUSTOMER_LIST',501);



// 通讯
define('EVENT_SPECIES_LIST','event_species_list');
define('EVENT_GOURP_LIST','event_group_list');
define('EVENT_PRODUCTOR_LIST','event_productor_list');
define('EVENT_PRODUCTOR_INFO','event_productor_info');
define('EVENT_CUSTOMER_LOGIN_BY_PHONE_NUMBER','event_customer_login_by_phone_number');
define('EVENT_CUSTOMER_LOGIN_BY_WX','event_customer_login_by_wx');
// ------- 获取验证码 ---------
define('EVENT_VERIFY_CODE_GET','event_verify_code_get');

define('EVENT_QUESTION_ADD','event_question_add');
define('EVENT_QUESTION_LIST','event_question_list');
define('EVENT_PRODUCTOR_INFO_HIST','event_productor_info_hist');
define('EVENT_CUSTOMER_LOGOUT','event_customer_logout');
define('EVENT_LOGIN_STATE','event_login_state');


define('EVERY_PAGE_COUNTS','every_page_counts');
define('PAGE_NUM','page_num');
define('TOTAL_COUNTS','total_counts');
define('NAME_INDEX','name_index');
define('SPECIES_LIST','species_list');
define('GROUP_LIST','group_list');
define('PRODUCTOR_LIST','productor_list');
define('PRODUCTOR_INFO','productor_info');
define('QUESTION_LIST','question_list');
define('PRODUCTOR_LIST_HIST','productor_list_hist');

// 用户登录方式
define('LOGIN_TYPE','login_type');
// 密码登录
define('PASSWORD_LOGIN','password_login');
// 验证码登录
define('VERIFY_CODE_LOGIN','verify_code_login');
// 前端登录有效时间5分钟
define('SESSION_VALID_TIME',300);
// 验证码有效时间5分钟
define('VERIFY_CODE_VALID_TIME',300);
// 验证码冷却时间1分钟
define('VERIFY_CODE_REQUEST_TIME',1);
// 云端服务器
define('SERVER_REMOTE_ADDRESS','www.zhaom.cn');
// 短信发送接口
define('URL_SEND_SMS_ALIDAYU','https://'.SERVER_REMOTE_ADDRESS.':444/api_sdk/Dysmsapi/smsDemo.php');

define(STATE_YES,1);
define(STATE_NO,0);
